params = {
  # restaurant_id: Restaurant.first.id,
  'restaurant_id' => 32,
  'name' => 'john',
  'mobile' => '13112345678',
  'date' => '2019-05-31',
  'start_time' => 17.hours.to_i,
  'end_time' => 17.5.hours.to_i,
  'number' => 3
}

result = Restaurant.add_reservation(params)
puts result

Rails.logger.info result
